package com.xjc.business.service;

import com.xjc.business.entity.domain.DoorAdmins;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xjc.business.entity.po.dooradmin.DoorAdminLoginPo;
import com.xjc.business.entity.po.schadmin.PersonPo;
import com.xjc.business.entity.vo.PageVo;
import com.xjc.business.entity.vo.dooradmin.DoorAdminLoginVo;
import com.xjc.business.entity.vo.schadmin.PersonVo;
import com.xjc.system.result.Result;

/**
* @author root
* @description 针对表【door_admins(门卫)】的数据库操作Service
* @createDate 2025-01-25 10:24:31
*/
public interface DoorAdminsService extends IService<DoorAdmins> {

    /**
     * 分页查询人员信息
     *
     * @param pageSize      每页显示条数
     * @param currentPage   当前页码
     * @param adminUserName 用户名
     * @param adminNickName 昵称
     * @param schoolId
     * @return 信息
     */
    Result<PageVo<PersonVo>> getDoorAdminPage(Integer pageSize, Integer currentPage, String adminUserName, String adminNickName, Integer schoolId);

    /**
     * 添加管理员
     * @param personPo 管理员信息
     * @return 反馈
     */
    Result<String> addDoorAdmin(PersonPo personPo);

    /**
     * 登录
     * @param doorAdminLoginPo 登录参数
     * @return 登录成功返回token，失败返回错误信息
     */
    Result<DoorAdminLoginVo> doLogin(DoorAdminLoginPo doorAdminLoginPo);
}
